/* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   Module Name          : com.yaodian100.crm.cs.entity.QuestionType
   Module Description   :

   Date Created      : 2010/1/25
   Original Author   : andy.chuang
   Team              : yaodian100
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
   MODIFICATION HISTORY
   ------------------------------------------------------------------------------
   Date Modified       Modified by       Comments
   ------------------------------------------------------------------------------
   ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
package com.yaodian100.crm.cs.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.yaodian100.core.form.entity.Form;

/**
 * @author andy.chuang
 *
 */
@Entity
@Table(name="CRM_QUESTION_TYPE")
public class QuestionType implements Serializable{
    private Form extraAttr;
    private String name;
    private String description;
    private Boolean needWorkOrder=true;
    private String workFlowName;
    private Boolean needAnswer=false;

    /**
     * @return the needAnswer
     */
    public Boolean getNeedAnswer() {
        return needAnswer;
    }
    /**
     * @param needAnswer the needAnswer to set
     */
    public void setNeedAnswer(Boolean needAnswer) {
        this.needAnswer = needAnswer;
    }
    /**
     * @return the workFlowName
     */
    @Column(length=100)
    public String getWorkFlowName() {
        return workFlowName;
    }
    /**
     * @param workFlowName the workFlowName to set
     */
    public void setWorkFlowName(String workFlowName) {
        this.workFlowName = workFlowName;
    }
    /**
     * @return the needWorkOrder
     */
    public Boolean getNeedWorkOrder() {
        return needWorkOrder;
    }
    /**
     * @param needWorkOrder the needWorkOrder to set
     */
    public void setNeedWorkOrder(Boolean needWorkOrder) {
        this.needWorkOrder = needWorkOrder;
    }
    /**
     * @return the extraAttr
     */
    @ManyToOne
    public Form getExtraAttr() {
        return extraAttr;
    }
    /**
     * @param extraAttr the extraAttr to set
     */
    public void setExtraAttr(Form extraAttr) {
        this.extraAttr = extraAttr;
    }
    /**
     * @return the name
     */
    @Id
    @GeneratedValue(generator = "assigned")
    @GenericGenerator(name = "assigned", strategy = "assigned")
    public String getName() {
        return name;
    }
    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }
    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }
    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }
}
